package opp.Infer;

import java.util.Scanner;

public class Test {
    public static void main(String[] args) {
        //实现回文数
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个五位数：");
        int num = scanner.nextInt();
        int a = (num % 100000) / 10000;
        int b = (num % 10000) / 1000;
        int c = (num % 1000) / 100;
        int d = (num % 100) / 10;
        int e = (num % 10) / 1;
        //System.out.println((a==e&&b==d)?"该数字是回文数":"该数字不是回文数”);
        if (a == e && b == d) {
            System.out.println("该数字是回文数");

        }else
        {
            System.out.println("该数字不是回文数");

        }
    }
}
